package com.ctshk.rpc.order.train.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 火车票手工单（外挂单）
 * </p>
 *
 * @author 彭柳霖
 * @since 2021-03-17
 */
@Data
@ApiModel(value="TrainManualOrderReq对象", description="火车票手工单（外挂单）")
public class TrainManualOrderReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @NotNull(message = "外挂单系统不能为空")
    @ApiModelProperty(value = "外挂单系统")
    private Long systemId;

    @NotNull(message = "外挂单系统名称不能为空")
    @ApiModelProperty(value = "外挂单系统名称")
    private String systemName;

    @NotNull(message = "服务费金额不能为空")
    @ApiModelProperty(value = "服务费金额")
    private BigDecimal serviceAomunt;

    @ApiModelProperty(value = "出票方式")
    private Integer ticketMode;

    @ApiModelProperty(value = "旅客属性")
    private String passenger;

    @NotNull(message = "订单信息不能为空")
    @ApiModelProperty(value = "订单信息")
    private TrainOrderReq trainOrderReq;

    @NotEmpty(message = "旅客信息不能为空")
    @ApiModelProperty(value = "旅客信息")
    private List<TrainOrderTouristReq> trainOrderTouristReqList;
}
